package com.example.demo.entity.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 ** Create by Wedream on 2021/8/5
 *  为了对应前端数据类型 { method: '枚举和暴力', ratio: 0.30 },
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MethodRatio implements Comparable<MethodRatio>{
    private String method;
    private Double ratio;
    private Integer num;

    @Override
    public int compareTo(MethodRatio o) {
        return this.getRatio().compareTo(o.getRatio());
    }

}
